package com.example.patient.jpa;

import com.example.common.entity.Comment;
import org.springframework.data.jpa.repository.JpaRepository;

import java.math.BigDecimal;

/**
 * @Author wxy
 * @Date 2021/1/21 17:24
 * @Version 1.0
 */
public interface CommentRepository extends JpaRepository<Comment, String> {

    Long countByDcIdAndScoreGreaterThanEqual(Long dcId, BigDecimal dScore);

    Long countByDcId(Long dcId);
}
